Skip to content

Lock GitHub Actions dependencies to verified commits - #30

Merged
nuttykenzo merged 1 commit into
masterfrom
ci/lock-actions
Nov 13, 2026
Merged

nuttykenzo merged 1 commit into
masterfrom
ci/lock-actions

Conversation

@nuttykenzo

Copy link
Copy Markdown
Contributor

Locks every GitHub Action these workflows use to an exact, verified commit, using GitHub's official gh actions-lock tool.

  • Adds .github/workflows/actions.lock, which records the commit each action resolves to (including actions those actions pull in). GitHub's runner checks it at job start, so a hijacked or repointed tag can't run here.
  • Narrows floating tags (@v4) to exact releases (@v4.4.0) so the lock stays valid.
  • Adds verify-lockfile.yml, which fails a PR if the lockfile is stale or a pin no longer verifies upstream.

Workflow-only change. No package code, version or release behavior changes.

After adding or changing any uses:, run gh actions-lock and commit the updated lockfile.

@nuttykenzo
nuttykenzo merged commit 4c24ffa into master Nov 13, 2026
2 checks passed
@nuttykenzo
nuttykenzo deleted the ci/lock-actions branch November 13, 2026 04:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant